#pragma once

namespace mray{

struct vec2{

	vec2(){}
	vec2(float x, float y);
	vec2(const vec2& v);
	vec2& operator = (const vec2& v);
	vec2& operator *= (float f);
	vec2 operator *(float f)const;
	vec2& operator += (const vec2& v);
	vec2& operator -= (const vec2& v);

	union{
		struct {float x, y;};
		struct {float w, h;};
		struct {float u, v;};
		float data[2];
	};
};

}